<@override name="content">
<div class="ui sixteen wide column" id="main-content">
    <div class="ui basic segment" style="margin-right: 100px;margin-left: 100px;">
        <h1>${(topic.title)!'无标题'}</h1>
        <div class="ui basic segment">
            <p style="font-size:1.1rem;text-indent: 2rem;">${(topic.content)!'无内容'}</p>
        </div>
        <div class="ui divider"></div>


            <div class="comment">
                <ul>
                    <#list replies as reply>
                        <a class="avatar">
                            <img src="../images/matt.jpg">
                        </a>
                    <div class="text">

                        <li><p style="font-size:1.1rem;text-indent: 2rem;">${reply.content}</p></li>
                        <br> <p style="font-size:1.1rem;text-indent: 2rem;">--<b>${reply.nickname}</b> &nbsp;回复于 &nbsp;${reply.pub_date}</p>
                    </div>
                        <div class="ui divider"></div>
                    </#list>
                </ul>
            </div>


        <div class="field">
            <#if (session.user)??>

                <form action="/topic/reply" method="post" class="ui reply form">
                    <div class="field" style="margin-bottom: 50px;">
                    <input type="hidden" name="user_id" value="${session.user.id}">
                    <input type="hidden" name="topic_id" value="${topic.id}">
                    回复内容: <textarea name="content" cols="30" rows="10"></textarea>
                    <input type="submit" value="回复">
                    </div>
                </form>
            <#else>
                <span style="color:red;">请<a href="${base}/login">登录</a>后再回复</span>
            </#if>





    </div>
</div>
</@override>
<@extends name="../parent1.ftl"></@extends>